package com.hzy.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 预约信息视图返回对象 (View Object)
 *
 * @author HZY
 */
@Data
@ApiModel(description = "预约信息返回实体")
public class ReservationVo {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "预约人姓名")
    private String name;

    @ApiModelProperty(value = "预约人手机号")
    private String mobile;

    @ApiModelProperty(value = "预约时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    @ApiModelProperty(value = "探访人")
    private String visitor;

    @ApiModelProperty(value = "预约类型，0：参观预约，1：探访预约")
    private Integer type;

    @ApiModelProperty(value = "预约状态，0：待报道，1：已完成，2：取消，3：过期")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "备注")
    private String remark;
}